package mapkit.carto
{

	public class MapDefinition implements IMap
	{
		private var _width:Number=400;

		final public function get width():Number
		{
			return _width;
		}

		private var _height:Number=300;

		final public function get height():Number
		{
			return _height;
		}

		private var _extent:Envelope=new Envelope();

		final public function get extent():Envelope
		{
			return _extent;
		}

		private var _locator:IMapLocator=new MapLocator();

		final public function get locator():IMapLocator
		{
			return _locator;
		}

		final public function toMapPoint(pt:Point):Location
		{
			return locator.toMapPoint(pt, this);
		}

		final public function fromMapPoint(loc:Location):Point
		{
			return locator.fromMapPoint(loc, this);
		}

	}
}